package com.wzdigit.wms.wms.client.web.service.wms2oms.sync.ctnr;

public class OmsStkServicePortTypeProxy implements OmsStkServicePortType {
  private String _endpoint = null;
  private OmsStkServicePortType omsStkServicePortType = null;
  
  public OmsStkServicePortTypeProxy() {
    _initOmsStkServicePortTypeProxy();
  }
  
  public OmsStkServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOmsStkServicePortTypeProxy();
  }
  
  private void _initOmsStkServicePortTypeProxy() {
    try {
      omsStkServicePortType = (new OmsStkServiceLocator()).getOmsStkServiceHttpPort();
      if (omsStkServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)omsStkServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)omsStkServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (omsStkServicePortType != null)
      ((javax.xml.rpc.Stub)omsStkServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public OmsStkServicePortType getOmsStkServicePortType() {
    if (omsStkServicePortType == null)
      _initOmsStkServicePortTypeProxy();
    return omsStkServicePortType;
  }
  
  public Rsp_Stock[] syncMoFinish(Req_Stock[] in0) throws java.rmi.RemoteException{
    if (omsStkServicePortType == null)
      _initOmsStkServicePortTypeProxy();
    return omsStkServicePortType.syncMoFinish(in0);
  }
  
  public Rsp_Dn[] syncDnInfo(Req_Dn[] in0) throws java.rmi.RemoteException{
    if (omsStkServicePortType == null)
      _initOmsStkServicePortTypeProxy();
    return omsStkServicePortType.syncDnInfo(in0);
  }
  
  public Rsp_Ppl[] syncPartPackList(Req_Ppl[] in0) throws java.rmi.RemoteException{
    if (omsStkServicePortType == null)
      _initOmsStkServicePortTypeProxy();
    return omsStkServicePortType.syncPartPackList(in0);
  }
  
  public Rsp_Pl[] syncPackList(Req_Pl[] in0) throws java.rmi.RemoteException{
    if (omsStkServicePortType == null)
      _initOmsStkServicePortTypeProxy();
    return omsStkServicePortType.syncPackList(in0);
  }
  
  
}